package cn.bandeqing.customerAddress.entity;

import cn.bandeqing.frame.mybatis.config.InsertOrUpdateListener;
import cn.bandeqing.frame.mybatis.entity.BaseEntity;
import cn.bandeqing.wechatminiapp.req.CustomerAddressSaveOrUpdateReq;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import java.math.BigDecimal;
import java.sql.Timestamp;

import io.github.linpeilie.annotations.AutoMapper;
import lombok.*;
import lombok.experimental.SuperBuilder;

/**
 * 客户地址表 实体类。
 *
 * @author fugui
 * @since 2024-02-26
 */
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "bdq_customer_address", onInsert = InsertOrUpdateListener.class, onUpdate = InsertOrUpdateListener.class)
@AutoMapper(target = CustomerAddressSaveOrUpdateReq.class, convertGenerate = false)
public class CustomerAddress extends BaseEntity {

    @Id(keyType = KeyType.Auto)
    private Long addressId;

    private Long customerId;

    private String customerName;

    private String customerPhone;

    private String addressName;

    private String addressDetail;

    private Double addressLat;

    private Double addressLng;

    private Integer floor;

    private Boolean elevator;


}
